import { defineStore } from "pinia";
import { ref } from "vue";
export const useAdminStore = defineStore(
  "admin",
  () => {
    const admin = ref({});

    const setAdmin = (newAdmin) => {
      admin.value = newAdmin;
    };

    const removeAdmin = () => {
      admin.value = {};
    };

    return {
      admin,
      setAdmin,
      removeAdmin,
    };
  },
  { persist: true }
);
